import service from "@/requset/requset.js";

export function getNoticeList() {
    return service({
        url: '/notice/listNoticeNumber',
    })
}

export function getNoticeListApi(type) {
    return service({
        url: '/notice/listNotice',
        params: {
            noticeType: type
        }
    })
}

// 通知已读
export function readApi(type) {
    return service({
        url: '/notice/read',
        params: {
            noticeType: type
        }
    })
}

export function getUnreadNoticeApi() {
    return service({
        url: '/notice/unreadNotice'
    })
}

export function getNoticeAllApi(data) {
    return service({
        url: '/notice/listNoticeAll',
        method: "post",
        data: data
    })
}

export function deleteNoticeApi(id) {
    return service({
        url: '/notice/deleteNotice',
        params: {
            id: id
        }
    })
}
export function addNoticeApi(data) {
    return service({
        url: '/notice/addNotice',
        method:"post",
        data:data
    })
}